#!/bin/bash

a=1000000000;

for ((c=256; c<$a; c=$c*2)) ; do
    for ((i=0; i<30; i++)) ; do
      sleep 1
      `java -Xmx2500m Main $c >> results.txt`
    done
done